#include "widget.h"
#include "ui_widget.h"
#include <QFileDialog>
#include <QDebug>
#include <QFileinfo>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
   QString path = QFileDialog::getOpenFileName(this);
   QFileInfo fileInfo(path);
   qDebug() << fileInfo.fileName();
   qDebug() << fileInfo.suffix();
   qDebug() << fileInfo.path();
   qDebug() << fileInfo.size();
   qDebug() << fileInfo.isDir();
}
